package org.jeecg.modules.zhoupackage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.jeecg.modules.zhoupackage.pojo.myexcel.ProSize;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;

import java.util.List;

/**
 * 客户表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class MlccCustomerInfo {

    /**
     * 主键ID
     */
//    @ExcelIgnore
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 客户编码
     */
//    @ExcelProperty("员工工号")
    @Excel(name = "员工工号", needMerge = true)
    private String customerCode;

    /**
     * 客户名称
     */
//    @ExcelProperty("员工姓名")
    @Excel(name = "员工姓名", needMerge = true)
    private String customerName;

    /**
     * 简称
     */
//    @ExcelIgnore
    private String referred;

    /**
     * 客户性别：默认0无，1男，2女
     */
//    @ExcelProperty(value = "性别", converter = GnederConverter.class)
    @Excel(name = "性别", replace = {"男_1", "女_2"}, needMerge = true)
    private Integer sex;

    /**
     * 默认0客户身份，1表示公司身份
     */
//    @ExcelIgnore
    private Integer isCompany;

    /**
     * 部门ID
     */
//    @ExcelIgnore
    private String departId;

    /**
     * 联系电话
     */
//    @ExcelIgnore
    private String phone;

    /**
     * 地址
     */
//    @ExcelIgnore
    private String address;

    //    @ExcelProperty("自定义部门1")
    @Excel(name = "自定义部门1", needMerge = true)
    private String defaultValue1;

    //    @ExcelProperty("自定义部门2")
    @Excel(name = "自定义部门2", needMerge = true)
    private String defaultValue2;

    //    @ExcelProperty("自定义部门3")
    @Excel(name = "自定义部门3", needMerge = true)
    private String defaultValue3;

    //    @ExcelProperty("自定义部门4")
    @Excel(name = "自定义部门4", needMerge = true)
    private String defaultValue4;

    //    @ExcelProperty("自定义部门5")
    @Excel(name = "自定义部门5", needMerge = true)
    private String defaultValue5;

    //    @ExcelProperty("自定义部门6")
    @Excel(name = "自定义部门6", needMerge = true)
    private String defaultValue6;

    /*用于前端展示的无关字段*/
    /**
     * 部门名称
     */
//    @ExcelProperty("采购项名称")
    @Excel(name = "采购项名称", needMerge = true)
    @TableField(exist = false)
    private String departName;

    /**
     * 产品名称
     */
//    @ExcelProperty("产品名称")
    @Excel(name = "产品名称", needMerge = true)
    @TableField(exist = false)
    private String productName;

    /**
     * 标准尺码
     */
//    @ExcelProperty("标准尺码")
    @Excel(name = "标准尺码", needMerge = true)
    @TableField(exist = false)
    private String bsize;

    /**
     * 配合团订前端展示售后类型
     */
//    @ExcelIgnore
    @TableField(exist = false)
    private Integer afterType;

    /**
     * 尺寸集合
     */
//    @ExcelIgnore
    @ExcelCollection(name = "量体尺寸")
    @TableField(exist = false)
    List<ProSize> sizeList;

    /**
     * 小产品对应的大产品id
     */
    @TableField(exist = false)
    private String productid;
}
